package com.ys.zero.biz;

import com.ys.zero.dao.articalDao;

public class uarticleBiz {
	private articalDao adao = new articalDao();
	public void judgeArticle(int id, String type, String log, String utitle, String content) throws BizException {
		if (type == null || type.trim().isEmpty()) {
			throw new BizException("类型不能为空");
		} else if (log == null || log.trim().isEmpty()) {
			throw new BizException("标签不能为空");
		} else if (utitle == null || utitle.trim().isEmpty()) {
			throw new BizException("文章的标题不能为空");
		} else if (content == null || content.trim().isEmpty()) {
			throw new BizException("文章的内容不能为空");
		}else {
			adao.addTestHtml(id, type, log, utitle, content);
		}

	}
}